#ifndef IDPOOL_HEADER_
#define IDPOOL_HEADER_

#include <list>

class IDPool
{
public:
	IDPool(int minID=0,int maxID=100);
	int getID();
	bool freeID(int id);
private:
	std::list<int> freeIDs;
	int curID;
	int minID;
	int maxID;
};

#endif